<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>径向渐变</title>
    <style>
        .ceng {
            width: 100px;
            height: 100px;
            border: 1px solid black;
            border-radius: 50%;
            margin: 10px;
            float: left;
        }

        .circle {
            /* 第一个参数 默认值 circle at center */
            background-image: radial-gradient(orange, green);
        }

        .ellipse {
            background-image: radial-gradient(ellipse at center, orange, green);
        }
    </style>
</head>
<body>
    <div class="ceng circle"></div>
    <div class="ceng ellipse"></div>
</body>
</html>